package Strategy.Demo.Ducks;

import Strategy.Demo.Interfaces.Duck;
import Strategy.Demo.InterfacesImpl.CanFly;
import Strategy.Demo.InterfacesImpl.Squack;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 11:15 2017/9/5
 * @Modified by: 1.0
 */
public class LvTouDuck extends Duck {
    public LvTouDuck()
    {
        fly= new CanFly();
        duckQuack = new Squack();
    }

    @Override
    public void display()
    {
        System.out.println("绿头鸭！");
    }

}
